package com.aiks.dsyncpluginspringbootautoconfigure.plugin.module.user;


import com.aiks.dsyncpluginspringbootautoconfigure.enums.PluginEnum;
import com.aiks.dsyncpluginspringbootautoconfigure.plugin.AbstractFilterDeptConditionPlugin;
import com.aiks.dsyncpluginspringbootautoconfigure.plugin.module.UserModule;
import com.aiks.dsyncpluginspringbootautoconfigure.pojo.SaasUserDTO;
import org.springframework.context.annotation.Configuration;

/**
 * 用户黑名单插件（部门及其子部门）.
 *
 * @author <a href="mailto:yuanz@yxt.com">yuanz</a>
 * @date 2022-07-05 09:32
 * @since 1.0.0
 **/
public class UserBlack4DeptConditionPlugin extends AbstractFilterDeptConditionPlugin<SaasUserDTO> implements UserModule {
    
    /**
     * judgeResult.
     *
     * @return boolean
     */
    @Override
    protected boolean judgeResult() {
        return true;
    }
    
    /**
     * getPluginEnum.
     *
     * @return PluginEnum
     */
    @Override
    public PluginEnum getPluginEnum() {
        return PluginEnum.UserBlack4DeptConditionPlugin;
    }
}
